Skip to content

feat(serialization): Add GraalVM metadata configuration #1905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jreijn
Copy link
Contributor

@jreijn jreijn commented Jun 19, 2025

Issue #, if available: #1839

Description of changes:

This PR changed:

  • Added GraalVM metadata generation for powertools-serialization
  • Moved existing example to powertools-serialization-sam
  • Introduced new example for powertools-serialization-sam-graalvm
  • Moved GraalVM metadata for tests to test package

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jreijn jreijn force-pushed the feat/graalvm-metadata-serialization branch from d5356e3 to 4c9956d Compare June 23, 2025 13:03
@phipag
Copy link
Contributor

phipag commented Jun 25, 2025

Hey @jreijn, is this PR ready for review?

@jreijn
Copy link
Contributor Author

jreijn commented Jun 25, 2025

Hi @phipag, yes I believe this PR is ready for review.

@phipag
Copy link
Contributor

phipag commented Jun 25, 2025

Awesome, thanks again for your work here @jrein. As you can see, there are a couple of pending PRs at the moment that I need to review but I'll do my best to test this soon.

@jreijn
Copy link
Contributor Author

jreijn commented Jun 25, 2025

Thanks @phipag. Don't worry, I understand. I'm still working on powertools-batch, so I will just keep filling your backlog 😉

Copy link
Contributor

@phipag phipag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats @jreijn on another GraalVM PR. This looks great. I just left two small comments. Can you commit those and resolve the merge conflict?

After this we are good to merge. I tested both examples end-to-end using GraalVM in my account and it worked like a charm.

Thanks for your patience waiting for my review 🚀

@jreijn jreijn force-pushed the feat/graalvm-metadata-serialization branch from 50ec7ad to b88ad1f Compare July 11, 2025 09:03
@jreijn jreijn force-pushed the feat/graalvm-metadata-serialization branch from b88ad1f to af1ecf0 Compare July 11, 2025 09:11
@jreijn
Copy link
Contributor Author

jreijn commented Jul 11, 2025

Thanks @phipag, I've made the requested changes. However I noticed that with the update of the runtime-client-interface dependency the example is broken due to some classes that got removed and the native libraries have been changed. Currently fixing testing that again to see what I need to do to get it in a working state. It might be that some other graalvm examples are broken as well at the moment. If I get it fixed I will create a new PR for those other modules when I get the metadata right.

@phipag
Copy link
Contributor

phipag commented Jul 11, 2025

Thanks and good catch @jreijn. I'll wait here for your update. Please ping me once it is ready for review again. Also looking forward to the fixes for the other modules.

I will also work on this issue soon which will allow us to catch such regressions for the production modules in the future.

Copy link

@jreijn
Copy link
Contributor Author

jreijn commented Jul 11, 2025

@phipag ready for review. ✅ I'll create an issue for the other modules that already have GraalVM metadata.

Copy link
Contributor

@phipag phipag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥳 . Works in my AWS account.

@phipag phipag merged commit 0f36150 into aws-powertools:main Jul 11, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Pending review to Coming soon in Powertools for AWS Lambda (Java) Jul 11, 2025
@phipag phipag linked an issue Jul 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Coming soon
Development

Successfully merging this pull request may close these issues.

feat(v2): GraalVM support for Serialization utility
2 participants